package pattern.interpreter;

// 非终结者表达式（加法）
public class PlusNonTerminal extends NonTerminal implements Expression {

    public PlusNonTerminal(Expression left, Expression right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return left.interpret() + right.interpret();
    }
}
